<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Durian - Price alert tool</title>
<link rel="stylesheet" href="screen.css" type="text/css" media="screen, projection"> 
<script type="text/javascript" src="b.js"></script>
<script type="text/javascript" src="md5.js"></script>
<script type="text/javascript">
</script>
</head>
<body>
<div class="container">
<div id="header">
</div>

<h1></h1>
<table>
<tr><td>Name</td><td>Price</td><td>Action</td></tr>
<script type="text/javascript">
var items = {};
if (localStorage.drItems != null) {
    items = JSON.parse(localStorage.drItems);
}

for (k in items) {
    var item = items[k];
    document.write("<tr><td><a href='" + item.url + "' target='_blank'>" + item.name + "</a></td>");
    document.write("<td>" + item.priceline + "</td><td><a href='javascript:removeItem(\"" + hex_md5(item.url) + "\");location.reload(true);'>delete</a></td></tr>");
}
</script>
</table>
<p>client id: <script>document.write(localStorage.uid);</script></p>
<div>
<input type="button" id="clearAll" value="删除所有提醒项目" onclick="if (window.confirm('确定要删除所有的提醒项目？')) { removeAll();location.reload(true); }" />
</div>

<div id="footer">
</div>
</div>
</body>
</html>